<div class='item'>
  <div class='img'>
    <%= image_tag 'money/sex.png', :size => '105x78' %>
  </div>
  <div class='text'>
    <div class='line1'>
      设置您的性别！
    </div>
    <div class='line2'>
      <b>任务目标：</b>设置您基本资料中的性别！
    </div>
  </div>
  <div class='remark'>
    <% if not current_user.sex.unknown? %>
    <div>
      完成于<%= time_ago_in_words current_user.sex_feed.created_at, false %>前
    </div>
    <div>
      已获得麦粒：<b>450</b>    
    </div>
    <% else %>
    <div>
      可获得麦粒：<b>450</b>    
    </div>
    <% end %>
  </div>
  <div class='tools'>
    <% if current_user.sex_feed.nil? %>
    <%= link_to '立即设置',edit_user_url(current_user), :class => :corner %>
    <% else %>
    <%= link_to_function '已经领取','', :class => 'corner done' %>
    <% end %>
  </div>
  <% if current_user.sex_feed.nil?  %>
  <dl id="sex_feeds" class='feeds'>
    <dt>近期：</dt>
    <% Feed::MoneySex.all(:order => 'created_at desc', :limit => 20).each_with_index do |feed, index| %>
    <dd class='feed' style='<%= index == 0 ? '' : 'display:none' %>'><%= feed_to_html feed %></dd>
    <% end %>
  </dl>
  <script type="text/javascript" charset="utf-8">
    setInterval("next_feed('sex_feeds')",5000);
  </script>
  <% end %>
</div>